#include<iostream>
#include<fstream>
#include<stdlib.h>
#include<time.h>
using namespace std;

int main(int argc,char *argv[]){
	if(argc <=2){
		cout<<"useage:sortTestData num biggestNumber"<<endl;
		return -1;
	}
	int n = atoi(argv[1]);
	int max = atoi(argv[2]);
	ofstream ofs;
	ofs.open("sortTest.dat");
	srandom(time(NULL));
	int data;
	for(int i = 0;i<n;i++){
		data = random() % max;
		ofs << data<<" ";
	}
	ofs<<endl;
	ofs.close();

	return 0;
}
